<%--
  Created by IntelliJ IDEA.
  User: 兰宦君
  Date: 2015/10/3
  Time: 14:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/admin/index.do">网络购书系统——后台管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li <c:if test="${current=='book'}"> class="active" </c:if>> <a href="/admin/book.do">图书管理</a></li>
                <li <c:if test="${current=='user'}"> class="active" </c:if>> <a href="/admin/user.do">用户管理</a></li>
                <li <c:if test="${current=='order'}"> class="active" </c:if>> <a href="/admin/order.do">订单管理</a></li>
                <li <c:if test="${current=='note'}"> class="active" </c:if>> <a href="/admin/note.do">留言管理</a></li>
                <li <c:if test="${current=='employee'}"> class="active" </c:if>> <a href="/admin/employee.do">职工管理</a></li>
                <li <c:if test="${current=='publisher'}"> class="active" </c:if>> <a href="/admin/publisher.do">出版社管理</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <c:if test="${isLogin eq false}">
                    <li><a href="/login.do">登录</a></li>
                </c:if>
                <c:if test="${isLogin eq true}">
                        <li><a href="#">您好，${loginName}</a></li>
                        <li><a href="/logout.do">退出</a></li>
                    </ul>
                </c:if>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>